
<%@page import="com.nba.bean.Code"%>
<%@page import="com.nba.service.impl.CodeServiceImpl"%>
<%@page import="com.nba.service.CodeService"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title></title>
	<link rel="stylesheet" href="CSS/regist.css">
</head>
<% 
	CodeService codeservice  = new CodeServiceImpl();
	Code code = codeservice.loginCode();
	session.setAttribute("codeurl", code.getCodeUrl());
	session.setAttribute("code",code);
%>
<body>
	<div class="bigbox">
		<div class="box">
			<div class="top">
				<h1>欢迎注册NBA系统</h1>
			</div>
			<div class="bottom">
				<form action="regist.do" method="post">
					<table>
						<tr>
							<td>
							<lable  class="hua">用户名：</lable>
							</td>
							<td>
							<input type="text" placeholder="请输入用户名" id="name" name="adminName">
							<span class="red">${msg1}</span>
							</td>
						</tr>
						<tr>
							<td>
							<lable for="name" class="hua">密码：</lable>
							</td>
							<td>
							<input type="password" placeholder="请输入密码" id="pwd" name	="pwd">
							</td>
						</tr>
						<tr>
							<td>
							<lable for="name" class="hua">验证码：</lable>
							</td>
							<td>
								<input type="yzm"  class="sj" name="code">
								<img src="${codeurl}" class="cc">
								<a href="" class="change">换一换</a>
								<span class="red">${msg}</span>
							</td>
						</tr>
						<tr>
							<td colspan="2 ">
								<input type="submit" value="注册" class="yun">
								<input type="button" value="登录" class="yunn">
							</td>
						</tr>
					</table>
				</form>
			</div>
		</div>
	</div>
</body>
<script type="text/javascript" src="JS/jquery.js"></script>
<script type="text/javascript">
	var windowW = $(window).width();
	var windowH = $(window).height();

	$(".bigbox").css({"width":windowW+"px","height":windowH+"px"})
	$(".yunn").click(function(){
		window.location.href="/nba/login.jsp"
	})
</script>
</html>